<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "message".
 *
 * @property int $id id
 * @property string $title 标题
 * @property string $content 内容
 * @property string $time 时间
 * @property string $status 状态
 * @property string $type 类型
 * @property int $uid 用户id
 */
class Message extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'message';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['time'], 'safe'],
            [['uid'], 'integer'],
            [['title', 'content', 'status', 'type'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'id',
            'title' => '标题',
            'content' => '内容',
            'time' => '时间',
            'status' => '状态',
            'type' => '类型',
            'uid' => '用户id',
        ];
    }
}
